<template>
    <div class="dataN">
        <div class="dataN_d flex" v-for="item in data">
            <img class="dataN_d_img" :src="item.src" alt="" srcset="">
            <div class="flex dataN_d_right">
                <p class="dataN_d_right_p">{{ item.title }} <span class="dataN_d_right_p_span">{{ item.number }}</span>
                    <span v-if="item.unit=='electricity'">10<span class="unit-superscript">4</span>km/h</span>
                    <span v-if="item.unit=='gas'">10<span class="unit-superscript">4</span>m<span class="unit-superscript">2</span></span>
                    <span v-if="item.unit=='water'">m<span class="unit-superscript">3</span></span>
                </p>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    props: ["data"],
    data() {
        return {
        }
    },
    mounted() {
        // this.area()
    },
    methods: {
    }
}
</script>
<style lang="scss" scoped>
.dataN_d {
    align-items: center;
    .dataN_d_img{
        width: 59px;
        height: 59px;
    }
}
.unit-superscript {
  vertical-align: super;
  font-size: smaller;
}
.dataN_d_right {
    width: 320px;
    height: 22px;
    background: url("@/assets/Data/datanback.png");
    background-repeat: no-repeat;
    .dataN_d_right_p {
        padding: 0px 0px 16px 32px;
        margin: 0;
        margin-top: -15px;
        font-family: PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #D0E5F5;
    }

    .dataN_d_right_p_span {
        font-family: YouSheBiaoTiHei;
        font-weight: 400;
        font-size: 30px;
        color: #FFFFFF;
        margin: 0px 17px 0px 14px;
    }
}
</style>